package cn.idongjia.kuaidi.util;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

public class GsonUtil {
    public static final Gson GSON = new GsonBuilder().serializeNulls().create();

    public static boolean isJson(String string) {
        try {
            GSON.fromJson(string, Object.class);
            return true;
        } catch (Exception e) {
            return false;
        }
    }
}